/**
 * 
 */
define([ 'jquery', 'platform.common', 'gridview' ], function($, platform,
		gridview) {
	return {
		get : function(id) {

		},
		del : function(id) {
			var param = {};
			param.attachment_id = id;
			platform.servicebreakAsync('~/rest/attachment/delete', param,
					'post', function() {
						platform.showOperTip('DEALING');
					}).done(function(response) {
				if (response.success) {
					platform.showOperTip('DELSUC');
					gridview.refresh();

				} else {
					platform.showErrorTip(response.msg);

                }
			});
		},
		save : function(param) {

		}
	}
});